package com.wanxi.polymorphic.controller;

import com.wanxi.polymorphic.abs.AbsAnimal;
import com.wanxi.polymorphic.abs.DogAbs;
import com.wanxi.polymorphic.abs.JiaFeiCat;
import com.wanxi.polymorphic.model.Animal;
import com.wanxi.polymorphic.model.DogModel;

public class AbsClassTest {
    public static void main(String[] args) {
//        Animal animal = new DogModel("",1,1);

//        匿名类
//        AbsAnimal absAnimal = new AbsAnimal() {
//            @Override
//            public void eat(AbsAnimal animal) {
//
//            }
//
//            @Override
//            public void sleep() {
//
//            }
//        };
//        AbsAnimal dog=new DogAbs();

        new JiaFeiCat();

    }
}
